package com.atguigu.gmall.user.client;

import com.atguigu.gmall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author Administrator
 * @create 2020-05-27 17:02
 */
@FeignClient("service-user")
public interface UserFeignClient {

    //查询地址的集合  内部资源  浏览器不允许通过网关进行路由访问 只允许远程调用
    @GetMapping("/api/user/inner/findUserAddressListByUserId/{userId}")
    public List<UserAddress> findUserAddressListByUserId(@PathVariable(name = "userId") Long userId);
}
